package com.sgcc.system.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import com.sgcc.common.core.constant.ServiceNameConstants;
import com.sgcc.common.core.web.domain.AjaxResult;
import com.sgcc.system.api.domain.SysMenu;
import com.sgcc.system.api.factory.RemoteMeunFallbackFactory;

/**
 * 用户服务
 * 
 * @author sgcc
 */
@FeignClient(contextId = "remoteMeunService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteMeunFallbackFactory.class)
public interface RemoteMenuService
{
	 @GetMapping(value = "/menu/getInfoIsc")
	 public AjaxResult getInfoIsc(@RequestParam("menuId") String menuId);
	 
	 @PostMapping(value = "/menu/addIsc")
	 public AjaxResult addIsc(@Validated @RequestBody SysMenu menu);
	 
	 @PutMapping(value = "/menu/editIsc")
	 public AjaxResult editIsc(@Validated @RequestBody SysMenu menu);
    
}
